export const STORAGE_KEY = {
  // 用户相关
  userInfo: "userInfo",
  token: "token",
  tenantId: "tenantId",
};

// 响应码
export const RESPONSE_CODE = {
  SUCCESS: 0,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  INTERNAL_SERVER_ERROR: 500,
};
export const MOVE_STATUS = {
  0: "beConfirmed",
  10: "confirmed",
  100: "completed",
  140: "refuse",
};
export const MOVE_TEXT = {
  0: "草稿",
  10: "已确认",
  100: "已完成",
  140: "关闭",
};
// 订单状态
export const ORDER_STATUS = {
  0: "beConfirmed", //待确认
  10: "confirmed", //已确认
  20: "prepared", //已准备
  100: "completed", //已完成
  130: "refuse", //拒绝
  140: "refuse",
  //   0: "close", //关闭
};
export const ORDER_TEXT = {
  0: "待确认", //待确认
  10: "已确认", //已确认
  20: "已准备", //已准备
  100: "已完成", //已完成
  130: "拒绝", //拒绝
};

export const INBOUND_TYPE = {
  1: "手动入库",
  2: "生产入库",
  3: "退库入库",
};

// 产品类型
export const PRODUCT_TYPE = {
  0: "原材料",
  2: "成品",
};
export const OUTBOUND_TYPE = {
  0: "出库计划",
  1: "手动出库",
  2: "销售出库",
  3: "领料出库",
};
export const OUTBOUND_ORDER_TEXT = {
  0: "待处理", //待确认
  10: "处理中", //已确认
  20: "已准备", //已准备
  100: "已完成", //已完成
  140: "未完成",
};
export const OUTBOUND_ORDER_STATUS = {
  0: "beConfirmed", //待确认
  10: "confirmed", //已确认
  20: "prepared", //已准备
  100: "completed", //已完成
  130: "refuse", //拒绝
  140: "refuse",
};
